package br.com.peri.entity;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

@MappedSuperclass
public abstract class PeriEntity implements Entity {

	private static final long serialVersionUID = 1L;

	@Version
	@Column(name = "versao", length = 10, nullable = false)
	private Long versao;

	public Long getVersao() {
		return versao;
	}

	public void setVersao(Long versao) {
		this.versao = versao;
	}

}
